package com.head.firtst.ch2.demo1;

import com.head.firtst.ch2.demo1.CurrentConditionsDisplay;

/**
 * @author guohuixin
 * @date 2018/8/11
 */
public class WeatherStation {
    public static void main(String[] args) {
        com.head.firtst.ch2.demo1.WeatherData weatherData = new com.head.firtst.ch2.demo1.WeatherData();
        new CurrentConditionsDisplay(weatherData);
        weatherData.setMeasureMents(40, 22,44);

        com.head.firtst.ch2.demo2.WeatherData weatherData2 = new com.head.firtst.ch2.demo2.WeatherData();
        new com.head.firtst.ch2.demo2.CurrentCoditionDisplay(weatherData2);
        weatherData2.setMeasureMents(44, 44, 44);
    }
}
